/**集中配置管理服务器：
 * 1）核心依赖：spring-cloud-config-server，若需要集群配置多个则可以与Eureka Server配合，此时要依赖pring-cloud-starter-netflix-eureka-client
 * 2）main上@EnableConfigServer
 * 3）yml中配置属性：spring.cloud.config.server.xxx以便明确配置文件的具体位置和路径
 */
package com.example.democonfigserver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

@SpringBootApplication
@EnableConfigServer
@EnableDiscoveryClient
public class DemoConfigServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoConfigServerApplication.class, args);
    }

}
